package com.sudoku.command;

import com.sudoku.board.Tile;
import com.sudoku.utility.Constants;

public class EnterPencilNumberCommand extends Command implements Constants{

    private Tile tile;
    private char data;
    
    public EnterPencilNumberCommand(Tile t, char data){
        tile=t;
        this.data=data;
    }
    
    @Override
    public void execute() {
        tile.addPencilNumber(Integer.valueOf(String.valueOf(data)));
    }

    @Override
    public void undo() {
    	tile.removePencilNumber(Integer.valueOf(String.valueOf(data)));
    }


}
